<?php
// This page receives an instance of Note class

// Should CSS display property be set to 'none' or 'block' ?
if($note->display == true)
	$display = 'style="display:block;"';
else
	$display = 'style="display:none;"';
?>

<div <?php echo $display; ?> class="note_small" id="note_small_<?php $note->show('id'); ?>">
	
	<div class="note_small_title" id="ns_title_<?php $note->show('id'); ?>">
			<span onclick="note_edit_title(this)">
			<?php $note->show('title'); ?>
			</span>
	</div>
	
	<div class="note_small_meta" id="ns_meta_<?php $note->show('id'); ?>">
		by <?php $note->show('author') ?>, <?php $note->show('creation') ?>
	</div>
	
	<div class="note_small_body" id="ns_body_<?php $note->show('id'); ?>">
		<span id="nsbs_<?php $note->show('id'); ?>"><?php $note->show('excerpt'); ?></span>
		&nbsp;<a href="#" onclick="note_edit_body(this)">[Edit]</a>
	</div>
	
	<div class="note_small_footer" onclick="note_full('<?php $note->show('id'); ?>')">
	
		<span class="note_small_category">
			{ <?php echo $note->getCategoryName(); ?> }
		</span>
		|
		<span class="note_small_show">
			Show Full Note&nbsp;&rarr;
		</span>
		
	</div>
	
</div>

